<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@include file="/static/common/common.jsp"%>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/menu.js"></script>
</head>
<body>
<%--工具栏--%>
<div id="menu_toolbar">
    <shiro:hasPermission name="menu:add">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" id="add">添加</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="menu:edit">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" id="edit">编辑</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="menu:delete">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" id="remove">删除</a>
    </shiro:hasPermission>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" id="reload">刷新</a>
    <input type="text" name="keyword" style="width: 200px; height: 30px;padding-left: 5px;">
    <a class="easyui-linkbutton" iconCls="icon-search" id="searchbtn">查询</a>
</div>

<table id="menu_tree_grid" style="width:600px;height:400px"></table>

<%--菜单对话框--%>
<div id="menu_dialog">
    <form id="menuForm">
        <%--添加一个隐藏域--%>
        <input type="hidden" name="id">
        <table align="center" style="border-spacing: 0px 10px">
            <tr>
                <td>名称:</td>
                <td><input id="text" name="text" /></td>

            </tr>
            <tr>
                <td>上级菜单:</td>
                <td><input id="pid" name="pid" /></td>
            </tr>
            <tr>
                <td>排序:</td>
                <td><input name="sort" /></td>

            </tr>
            <tr>
                <td>访问路径:</td>
                <td><input name="url" /></td>
            </tr>

            <tr>
                <td>权限:</td>
                <td><input name="permission" /></td>
            </tr>

            <tr>
                <td>菜单类型:</td>
                <td><input id="type" name="type" /></td>
            </tr>

        </table>
    </form>

</div>
</body>
</html>
